//
//  PlayerViewController.h
//  LiTingFeng
//
//  Created by xinxuan on 16/3/2.
//  Copyright © 2016年 Bullgo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CircularProgressView.h"
#import "Music_YDSlider.h"

#import "ToggleButton.h"


typedef enum{
    playModeSingle = 0, //单曲
    playModeRandom,     //乱序循环
    playModeCirculate   //顺序循环
}PlayMode1;
@interface PlayerViewController : UIViewController<AVAudioPlayerDelegate,CircularProgressViewDelegate,LineProgressViewDelegate,UITableViewDataSource,UITableViewDelegate>

@property (nonatomic) PlayMode1 playmode;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *place1;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imageUpWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *timeUpSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *lastUpSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *nextUpSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *playUpSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *playModeUpSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *lastSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *nextSpace;


@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imageWidth;

@property (weak, nonatomic) IBOutlet UIButton *btnBack;//返回按键
@property (weak, nonatomic) IBOutlet UIButton *btnMusicList;//展开音乐列表按键
@property (weak, nonatomic) IBOutlet UIButton *btnPaUp;//上一首
@property (weak, nonatomic) IBOutlet UIButton *btnPaDown;//下一首

//@property (weak, nonatomic) IBOutlet CircularProgressView *circularProgressView;
@property (weak, nonatomic) IBOutlet Music_YDSlider *music_slider;//进度slider

@property (weak, nonatomic) IBOutlet UILabel *labRestTime;//走过的时间
@property (weak, nonatomic) IBOutlet UILabel *labSumTime;//总时间
@property (weak, nonatomic) IBOutlet UILabel *labSongName;//歌名
//@property (weak, nonatomic) IBOutlet UILabel *labAlbum;//专辑
@property (weak, nonatomic) IBOutlet UILabel *labArtist;//歌手
@property (weak, nonatomic) IBOutlet ToggleButton *btnPlay;//播放按键

//@property (weak, nonatomic) IBOutlet UILabel *labelTitle;
//@property (weak, nonatomic) IBOutlet UIButton *btnHeart;
@property (weak, nonatomic) IBOutlet UIImageView *cover_Img;
//@property (weak, nonatomic) IBOutlet UIView *viewPlayerControl;

@end
